import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

/**
 * 
 * @author Dolan
 *
 */
public class TreatmentRecordPanel extends JPanel{
		private JTextField textField;
		private JTextField textField_1;	
		private String[]month ={"January",  "Febuary",  "March", 
				"April",  "May",  "June",  "July",  "August",  
				"September",  "October",  "November",  "December"};
		private String[]day ={"1", "2", "3", "4", "5", "6", "7", "8", "9", 
				"10", "11", "12", "13", "14", "15", "16", "17", "18", "19", 
				"20", "21", "22", "23", "24", "25", "26", "27", "28", "29", 
				"30", "31"};
		private JTextField textField_2;


		public TreatmentRecordPanel() {
			SpringLayout springLayout = new SpringLayout();
			setLayout(springLayout);
			
			JLabel label = new JLabel("Create Treatment Record:");
			springLayout.putConstraint(SpringLayout.NORTH,  
					label,  10,  SpringLayout.NORTH,  this);
			springLayout.putConstraint(SpringLayout.WEST,  
					label,  130,  SpringLayout.WEST,  this);
			springLayout.putConstraint(SpringLayout.EAST,  
					label,  365,  SpringLayout.WEST,  this);
			label.setFont(new Font("Tahoma",  Font.BOLD | Font.ITALIC,  16));
			add(label);
			
			JLabel lblNewLabel = new JLabel("Month:");
			springLayout.putConstraint(SpringLayout.NORTH, lblNewLabel, 87, SpringLayout.NORTH, this);
			springLayout.putConstraint(SpringLayout.WEST, lblNewLabel, 42, SpringLayout.WEST, this);
			add(lblNewLabel);
			
			JLabel label_1 = new JLabel("Date:");
			springLayout.putConstraint(SpringLayout.NORTH, label_1, 31, SpringLayout.SOUTH, label);
			springLayout.putConstraint(SpringLayout.WEST, label_1, 0, SpringLayout.WEST, lblNewLabel);
			springLayout.putConstraint(SpringLayout.SOUTH, label_1, 51, SpringLayout.SOUTH, label);
			springLayout.putConstraint(SpringLayout.EAST, label_1, 194, SpringLayout.WEST, lblNewLabel);
			label_1.setFont(new Font("Tahoma",  
					Font.BOLD | Font.ITALIC,  16));
			add(label_1);
			
			JComboBox comboBox = new JComboBox(month);
			springLayout.putConstraint(SpringLayout.NORTH,  
					comboBox,  -4,  SpringLayout.NORTH,  lblNewLabel);
			springLayout.putConstraint(SpringLayout.WEST, comboBox, 6, SpringLayout.EAST, lblNewLabel);
			springLayout.putConstraint(SpringLayout.EAST, comboBox, 84, SpringLayout.EAST, lblNewLabel);
			add(comboBox);
			
			JLabel lblNewLabel_1 = new JLabel("Day:");
			springLayout.putConstraint(SpringLayout.NORTH, lblNewLabel_1, 0, SpringLayout.NORTH, lblNewLabel);
			springLayout.putConstraint(SpringLayout.WEST, lblNewLabel_1, 6, SpringLayout.EAST, comboBox);
			add(lblNewLabel_1);
			
			JComboBox comboBox_1 = new JComboBox(day);
			springLayout.putConstraint(SpringLayout.NORTH, 
					comboBox_1,  -4,  SpringLayout.NORTH,  lblNewLabel);
			springLayout.putConstraint(SpringLayout.WEST, comboBox_1, 6, SpringLayout.EAST, lblNewLabel_1);
			springLayout.putConstraint(SpringLayout.EAST, comboBox_1, 71, SpringLayout.EAST, lblNewLabel_1);
			add(comboBox_1);
			
			JLabel label_3 = new JLabel("Time:");
			springLayout.putConstraint(SpringLayout.NORTH, label_3, 35, SpringLayout.SOUTH, comboBox);
			springLayout.putConstraint(SpringLayout.WEST, label_3, 28, SpringLayout.WEST, this);
			springLayout.putConstraint(SpringLayout.SOUTH, label_3, 55, SpringLayout.SOUTH, comboBox);
			springLayout.putConstraint(SpringLayout.EAST, label_3, 86, SpringLayout.WEST, this);
			label_3.setFont(new Font("Tahoma",  
					Font.BOLD | Font.ITALIC,  16));
			add(label_3);
			
			textField = new JTextField();
			add(textField);
			textField.setColumns(10);
			
			JLabel label_4 = new JLabel("Symptoms Presented:");
			springLayout.putConstraint(SpringLayout.WEST, label_4, 28, SpringLayout.WEST, this);
			springLayout.putConstraint(SpringLayout.EAST, label_4, -198, SpringLayout.EAST, this);
			label_4.setFont(new Font("Tahoma", 
					Font.BOLD | Font.ITALIC,  16));
			add(label_4);
			
			JButton btnAddAppointment = new JButton("Create Record");
			springLayout.putConstraint(SpringLayout.WEST, btnAddAppointment, 28, SpringLayout.WEST, this);
			btnAddAppointment.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent arg0) {
				}
			});
			add(btnAddAppointment);
			
			JLabel label_5 = new JLabel("Doctor Attending:");
			springLayout.putConstraint(SpringLayout.WEST, label_5, 28, SpringLayout.WEST, this);
			label_5.setFont(new Font("Tahoma",  
					Font.BOLD | Font.ITALIC,  16));
			add(label_5);
			
			textField_1 = new JTextField();
			springLayout.putConstraint(SpringLayout.EAST, label_5, -6, SpringLayout.WEST, textField_1);
			springLayout.putConstraint(SpringLayout.SOUTH, textField, -6, SpringLayout.NORTH, textField_1);
			springLayout.putConstraint(SpringLayout.EAST, textField, 0, SpringLayout.EAST, textField_1);
			springLayout.putConstraint(SpringLayout.NORTH, textField_1, 2, SpringLayout.NORTH, label_5);
			springLayout.putConstraint(SpringLayout.WEST, textField_1, 0, SpringLayout.WEST, comboBox_1);
			add(textField_1);
			textField_1.setColumns(10);
			
			JTextArea txtAreaSymptoms = new JTextArea();
			springLayout.putConstraint(SpringLayout.SOUTH, btnAddAppointment, 29, SpringLayout.SOUTH, txtAreaSymptoms);
			springLayout.putConstraint(SpringLayout.SOUTH, label_4, -6, SpringLayout.NORTH, txtAreaSymptoms);
			springLayout.putConstraint(SpringLayout.NORTH, btnAddAppointment, 6, SpringLayout.SOUTH, txtAreaSymptoms);
			springLayout.putConstraint(SpringLayout.EAST, txtAreaSymptoms, 397, SpringLayout.WEST, this);
			springLayout.putConstraint(SpringLayout.SOUTH, txtAreaSymptoms, 436, SpringLayout.NORTH, this);
			springLayout.putConstraint(SpringLayout.NORTH, txtAreaSymptoms, 286, SpringLayout.NORTH, this);
			springLayout.putConstraint(SpringLayout.WEST, txtAreaSymptoms, 28, SpringLayout.WEST, this);
			add(txtAreaSymptoms);
			
			JLabel lblDiagnosis = new JLabel("Diagnosis:");
			springLayout.putConstraint(SpringLayout.SOUTH, label_5, -6, SpringLayout.NORTH, lblDiagnosis);
			springLayout.putConstraint(SpringLayout.NORTH, lblDiagnosis, 190, SpringLayout.NORTH, this);
			springLayout.putConstraint(SpringLayout.WEST, lblDiagnosis, 28, SpringLayout.WEST, this);
			springLayout.putConstraint(SpringLayout.EAST, lblDiagnosis, 122, SpringLayout.WEST, this);
			lblDiagnosis.setFont(new Font("Tahoma", 
					Font.BOLD | Font.ITALIC, 16));
			add(lblDiagnosis);
			
			JLabel lblYear = new JLabel("Year:");
			springLayout.putConstraint(SpringLayout.NORTH, lblYear, 0, SpringLayout.NORTH, lblNewLabel);
			springLayout.putConstraint(SpringLayout.WEST, lblYear, 14, SpringLayout.EAST, comboBox_1);
			add(lblYear);
			
			textField_2 = new JTextField();
			springLayout.putConstraint(SpringLayout.NORTH, textField_2, -3, SpringLayout.NORTH, lblNewLabel);
			springLayout.putConstraint(SpringLayout.WEST, textField_2, 6, SpringLayout.EAST, lblYear);
			add(textField_2);
			textField_2.setColumns(10);
			
			JTextArea textAreaDiag = new JTextArea();
			springLayout.putConstraint(SpringLayout.NORTH, label_4, 6, SpringLayout.SOUTH, textAreaDiag);
			springLayout.putConstraint(SpringLayout.EAST, textAreaDiag, 397, SpringLayout.WEST, this);
			springLayout.putConstraint(SpringLayout.SOUTH, textAreaDiag, 44, SpringLayout.SOUTH, lblDiagnosis);
			springLayout.putConstraint(SpringLayout.NORTH, textAreaDiag, 6, SpringLayout.SOUTH, lblDiagnosis);
			springLayout.putConstraint(SpringLayout.WEST, textAreaDiag, 28, SpringLayout.WEST, this);
			add(textAreaDiag);
		}
	}


